package com.example.lbstest.impl;

import com.example.lbstest.mapper.CardMapper;
import com.example.lbstest.mapper.NoticeMapper;
import com.example.lbstest.pojo.Card;
import com.example.lbstest.pojo.Notice;
import com.example.lbstest.service.CardMapperService;
import com.example.lbstest.service.NoticeMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeMapperServiceImpl implements NoticeMapperService {
    @Autowired
    NoticeMapper noticeMapper;

    @Override
    public int insertOneNotice(Notice notice) {
        return noticeMapper.insertOneNotice(notice);
    }

    @Override
    public List<Notice> selectNoticeListByUser(String number) {
        return noticeMapper.selectNoticeListByUser(number);
    }

    @Override
    public List<Notice> selectNoticeListByUserAndType(String number, String label,String class_number) {
        return noticeMapper.selectNoticeListByUserAndType(number,label,class_number);
    }

    @Override
    public List<Notice> selectNoticeListByUserAndLeave(String number, String label) {
        return noticeMapper.selectNoticeListByUserAndLeave(number,label);
    }

    @Override
    public int updateNoticeStatus(String id) {
        return noticeMapper.updateNoticeStatus(id);
    }
}
